#define _CRT_SECURE_NO_WARNINGS 
#include"list.h"
void ListTest()
{
	LTNode* plist = LTinit();
	LTPushback(plist, 1);
	LTPushback(plist, 2);
	LTPushback(plist, 3);
	LTPushback(plist, 4);
	LTPushback(plist, 5);
	LTPrint(plist);
	LTPushfront(plist, 6);
	LTPushfront(plist, 7);
	LTPushfront(plist, 8);
	LTPushfront(plist, 9);
	LTPushfront(plist, 10);
	LTPrint(plist);
	LTPopback(plist);
	LTPopback(plist);
	LTPopback(plist);
	LTPopback(plist);
	LTPopback(plist);
	LTPrint(plist);
	LTPopfront(plist);
	LTPopfront(plist);
	LTPopfront(plist);
	LTPopfront(plist);
	LTPrint(plist);
	LTInsert(LTFind(plist, 6), 1);
	LTInsert(LTFind(plist, 6), 2);
	LTInsert(LTFind(plist, 6), 3);
	LTInsert(LTFind(plist, 6), 4);
	LTInsert(LTFind(plist, 6), 5);
	LTPrint(plist);
	LTErase(LTFind(plist, 1));
	LTErase(LTFind(plist, 2));
	LTErase(LTFind(plist, 3));
	LTErase(LTFind(plist, 4));
	LTErase(LTFind(plist, 5));
	LTPrint(plist);
}
int main()
{
	ListTest();
	return 0;
}